package Demo;

public class Demo_Threads {
    public static void main(String[] args) {
        Thread thread1 = new Thread(() -> {
            while (true) {
                System.out.println("工作任务-5...");
            }
        });
        Thread thread2 = new Thread(() -> {
            while (true) {
                System.out.println("工作任务-5...");
            }
        });
        //多线程
        thread1.start();
        thread2.start();
    }
}